import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {TabsPage} from "../tabs/tabs";
import {ForgetPasswordPage} from "../forget-password/forget-password";
import {PublicProvider} from "../../providers/public/public";

/**
 * Generated class for the LoginPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-login',
  templateUrl: 'login.html',
})
export class LoginPage {

  constructor(public navCtrl: NavController, public navParams: NavParams, public public_var: PublicProvider) {
  }

  ionViewDidLoad() {
    clearTimeout(this.public_var.timeout1);
  }

  goto_home(){
    this.navCtrl.push(TabsPage);
  }

  goto_forgetpassword(){
    this.navCtrl.push(ForgetPasswordPage);
  }

}
